package org.zecontech.extraplus.init;

import net.minecraft.tags.BlockTags;
import net.minecraft.tags.TagKey;
import net.minecraft.world.level.block.Block;
import org.zecontech.extraplus.util.Helpers;

/**
 * 模组方块标签
 */
public class ModBlockTagKeys {

    public static final TagKey<Block> ORE_REPLACEABLES =
            registerBlockTag("ore_replaceables");

    /**
     * 注册方块标签
     * @param name 名字
     * @return 方块标签
     */
    public static TagKey<Block> registerBlockTag(String name) {
        return BlockTags.create(Helpers.identifier(name));
    }
}
